package com.dongdongshop.mapper;

import com.dongdongshop.pojo.TbOrderItem;
import com.dongdongshop.pojo.TbOrderItemExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbOrderItemMapper {
    int countByExample(TbOrderItemExample example);

    int deleteByExample(TbOrderItemExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TbOrderItem record);

    int insertSelective(TbOrderItem record);

    List<TbOrderItem> selectByExample(TbOrderItemExample example);

    TbOrderItem selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TbOrderItem record, @Param("example") TbOrderItemExample example);

    int updateByExample(@Param("record") TbOrderItem record, @Param("example") TbOrderItemExample example);

    int updateByPrimaryKeySelective(TbOrderItem record);

    int updateByPrimaryKey(TbOrderItem record);
    /**
     *更具交易订单号添加交易流水号
     * @param out_trade_no 商户交易订单号
     * @param trade_no 支付宝交易号
     */
    void updateOutTradeNoByTradeNo(@Param("out_trade_no") String out_trade_no, @Param("trade_no") String trade_no);

    void updateOrderItemByOrderId(@Param("timeId") String timeId, @Param("orderId") Long orderId);

    List<TbOrderItem> selectByTimeIdAndOrderId(@Param("orderId") Long orderId);

    void updateOrderItemByTradeOn(@Param("out_biz_on") String out_biz_on, @Param("out_trade_no") String out_trade_no);

}